package com.linewell.entity;

/**
 * @Title: ssm2
 * @description: 评论实体类
 * @author: hyuhuang@linewell.com
 * @since:2018/3/21
 */
public class Comment {
    /**
     * 评论id
     */
    private long commentId;
    /**
     * 评论的文章
     */
    private Article article;
    /**
     * 评论内容
     */
    private String commentText;
    /**
     * 文章的作者
     */
    private UserInfo articleUserId;
    /**
     * 评论日期
     */
    private String commentDate;
    /**
     * 评论的点赞数
     */
    private long commentZan;
    /**
     * 评论的踩
     */
    private long commentCai;

    public Comment() {
        this.article = new Article();
        this.articleUserId = new UserInfo();
    }

    public long getCommentId() {
        return commentId;
    }

    public void setCommentId(long commentId) {
        this.commentId = commentId;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public UserInfo getArticleUserId() {
        return articleUserId;
    }

    public void setArticleUserId(UserInfo articleUserId) {
        this.articleUserId = articleUserId;
    }

    public String getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(String commentDate) {
        this.commentDate = commentDate;
    }

    public long getCommentZan() {
        return commentZan;
    }

    public void setCommentZan(long commentZan) {
        this.commentZan = commentZan;
    }

    public long getCommentCai() {
        return commentCai;
    }

    public void setCommentCai(long commentCai) {
        this.commentCai = commentCai;
    }
}